@extends('layouts.home')
@section('title','金汇智谷——科技金融')
@section('content')
	<link rel="stylesheet" type="text/css" href="{{asset('resources/views/home/css/teachering.css')}}">

	<div class="fruitclass">
		<table>
			<tr>
				<td width="80">投资领域：</td>
				<td>
					<ul id="domainList">
						<script type="text/javascript">
						var domainArr=['不限','信息技术','新材料','资源环境','纺织服装','食品营养','装备制造','交通运输','生物医药','现代农业','节能建筑','新能源','科技服务','IT互联网','其他'];
						<?php $domain=isset($_GET['domain'])?$_GET['domain']:'不限'; ?>
						var htmlstr='';
						for(var i=0;i<domainArr.length;i++){
							if(domainArr[i]=='{{$domain}}'){
								htmlstr+='<li><a href="javascript:;" class="active">'+domainArr[i]+'</a></li>';
							}else{
								htmlstr+='<li><a href="javascript:;">'+domainArr[i]+'</a></li>';
							}
						}
						$('#domainList').html(htmlstr);
						</script>
					</ul>
				</td>
			</tr>
			<tr>
				<td width="80">资金类型：</td>
				<td>
					<ul id="typeList">
						<script type="text/javascript">
						var typeArr=['不限','政府基金','投资机构','行业众筹','技术入股','银行贷款'];
						<?php $type=isset($_GET['type'])?$_GET['type']:'不限'; ?>
						var htmlstr='';
						for(var i=0;i<typeArr.length;i++){
							if(typeArr[i]=='{{$type}}'){
								htmlstr+='<li><a href="javascript:;" class="active">'+typeArr[i]+'</a></li>';
							}else{
								htmlstr+='<li><a href="javascript:;">'+typeArr[i]+'</a></li>';
							}
						}
						$('#typeList').html(htmlstr);
						</script>
					</ul>
				</td>
			</tr>
			<tr>
				<td width="80">投资阶段：</td>
				<td>
					<ul id="methodList">
						<script type="text/javascript">
						var methodArr=['不限','研发阶段','实验室阶段','概念阶段','小批量生产阶段','规模化生产阶段','市场推广阶段'];
						<?php $method=isset($_GET['method'])?$_GET['method']:'不限'; ?>
						var htmlstr='';
						for(var i=0;i<methodArr.length;i++){
							if(methodArr[i]=='{{$method}}'){
								htmlstr+='<li><a href="javascript:;" class="active">'+methodArr[i]+'</a></li>';
							}else{
								htmlstr+='<li><a href="javascript:;">'+methodArr[i]+'</a></li>';
							}
						}
						$('#methodList').html(htmlstr);
						</script>
					</ul>
				</td>
			</tr>
			<!-- <tr>
				<td width="80">所在地区：</td>
				<td>
					<ul id="areaList">
						<script type="text/javascript">
						var areaArr=['全国','广东','北京','福建','安徽','重庆','甘肃','广西','贵州','海南','河北','黑龙江','河南','江苏','江西','吉林','辽宁','内蒙古','宁夏','青海','山东','上海','山西','陕西','四川','天津','新疆','西藏','云南','浙江','台湾','香港','澳门'];
						<?php //$area=isset($_GET['area'])?$_GET['area']:'不限'; ?>
						var htmlstr='';
						for(var i=0;i<areaArr.length;i++){
							if(areaArr[i]=='{{--$area--}}'){
								htmlstr+='<li><a href="javascript:;" class="active">'+areaArr[i]+'</a></li>';
							}else{
								htmlstr+='<li><a href="javascript:;">'+areaArr[i]+'</a></li>';
							}
						}
						$('#areaList').html(htmlstr);
						</script>
					</ul>
				</td>
			</tr> -->
		</table>
	</div>

	<script type="text/javascript">
	$(function(){
		$('#domainList li a').click(function(){
			$('#domainList li a').removeClass('active');
			$(this).addClass('active');
			location.href="{{url('bank')}}?domain="+$(this).text()+"&type={{$type}}&method={{$method}}";
		})
		$('#typeList li a').click(function(){
			$('#typeList li a').removeClass('active');
			$(this).addClass('active');
			location.href="{{url('bank')}}?domain={{$domain}}&type="+$(this).text()+"&method={{$method}}";
		})
		$('#methodList li a').click(function(){
			$('#methodList li a').removeClass('active');
			$(this).addClass('active');
			location.href="{{url('bank')}}?domain={{$domain}}&type={{$type}}&method="+$(this).text();
		})
	})
	</script>

	<div class="w100con bggrey">
		<div class="container help">
			<div class="row">
				<div class="col-md-12">
					<div class="help-con clearfix">
							<div class="helpleft bgwhite">
                            <div class="creadf bggrey">
                              <a href="{{url('admin/bank')}}"><button type="button" class="btn btn-danger btn-lg btn-block">我要发布项目</button></a>
                            </div>
							<dl class="helpdl">
									<dt class="f20 fgrey">点击排行</dt>
					<?php $i=1; ?>
					@foreach($banview as $v)
					<dd><span class="block" style="background:#3BC9CB;"><?php echo $i; ?></span><a href="{{url('bank/'.$v->ban_id)}}" title="{{$v->ban_name}}">{{$v->ban_name}}</a></dd>
					<?php $i++; ?>
					@endforeach
                            </dl>
							<dl class="helpdl">
									<dt class="f20 fgrey">最新文章</dt>
					<?php $i=1; ?>
					@foreach($bantime as $t)
					<dd><span class="block" style="background:#3BC9CB;"><?php echo $i; ?></span><a href="{{url('bank/'.$t->ban_id)}}" title="{{$t->ban_name}}">{{$t->ban_name}}</a></dd>
					<?php $i++; ?>
					@endforeach
                            </dl>
                </div>	
					<div class="helpright bgwhite">
			<h1 class="title">科技金融&nbsp;&nbsp;&nbsp;<small>信息列表</small></h1>
			<ul id="publicContent" style="min-height:500px;">
				@foreach($bandata as $b)
				<li style="background-image:none;padding-left:10px;">					
					<span class="time">{{date('Y-m-d',$b->ban_time)}}</span>
					<p>
						<a href="{{url('bank/'.$b->ban_id)}}" title="{{$b->ban_name}}">{{$b->ban_name}}</a>						
					</p>
					<p>
						<span>投资领域：{{$b->ban_domain}}</span>
						<span>资金类型：{{$b->ban_type}}</span>
						<span>投资阶段：{{$b->ban_method}}</span>
					</p>
				</li>
				@endforeach
			</ul>
			<div class="page">
				{{$bandata->links()}}
			</div>
          </div>
				</div>
				</div>
			</div>
		</div>
	</div>	

@endsection
